﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestLifePOS_Core.Data.Commands;
using BestLifePOS_Core.DomainObjects;
using System.Data;

namespace BestLifePOS_Core.Data.Fascade
{
  public  class STNDAO
  {
      public static List<STN> GetAllSTNbyStatus(string PStatus)
      {
          BestLifeGetAllSTNByStatusDataAction LvSTN = new BestLifeGetAllSTNByStatusDataAction(PStatus);
          return LvSTN.execute();

      }

      public static DataTable GetAllSTNDetailsbySTNid(string PSTNID, string PStatus)
      {

          BestLifeGetAllSTNDetailsBySTNidDataAction LvSTN = new BestLifeGetAllSTNDetailsBySTNidDataAction(PSTNID, PStatus);
         return LvSTN.execute();

      }

      public static int UpdateSTN(string PSTNList, string PStatus)
      {
          BestLifeUpdateSTNDataAction LvSTN = new BestLifeUpdateSTNDataAction(PSTNList, PStatus);
         return LvSTN.execute();
      }

    }
}
